<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 *
 */
include_once("../../config.inc.php");

$_LangPath = "marquee";
$strTemplatePath = __Admintemplate_Path."/Marquee/";
include_once(__Admin_Path."/logincheck.php");
include_once(__Language_Path."/selectlanguage_admin.php");
include_once(__Modules_Path."/SQLUtility.lib.php");
include_once(__Modules_Path."/Marquee.lib.php");
include_once(__Modules_Path."/ChangeTime.lib.php");

$arrPower = CheckUsePower("marquee");
if($arrPower === false)ErrMsgOutputHTML("Error", "", 1);

function getSpGroupTag($strSiteID, $strKey){
	global $_strMarquee;

	if($_SESSION["Admin_Info"] -> MemberGroup != 31 && $_SESSION["Admin_Info"] -> MemberGroup != 32){
		if($strKey === "" || $strKey === null)$strKey = "0,1";
		$strSpGTag = "<input type='hidden' name='SpGroup[".$strSiteID."]' value='".$strKey."'>";
	}else{
		$arrSpGTag = $_strMarquee["ArrSpGroup"] ;
		$strSpGTag = "<select name='SpGroup[".$strSiteID."]' id='SpGroup_".$strSiteID."' disabled>";
		foreach($arrSpGTag as $key => $val){
			$strSpGTag .= "<option value='".$key."'".((string)$strKey === (string)$key?" selected":"").">".$val."</option>";
		}
		$strSpGTag .= "</select>";
	}
	return $strSpGTag;
}

$isShowIsHidden = true;
if($_SESSION["Admin_Info"] -> MemberGroup != 31 && $_SESSION["Admin_Info"] -> MemberGroup != 32)$isShowIsHidden = false;

$SessionSQL = "bet_MarqueeSQL";
switch($_data["op"]){
	case "Add":							//新增表單
		include("Add.php");
		break;

	case "Insert":						//新增資料
		include("Insert.php");
		break;

	case "Edit":							//編輯表單
		include("Edit.php");
		break;

	case "Update":					//更改資料
		include("Update.php");
		break;

	case "Del":							//刪除資料
		include("Del.php");
		break;

	case "Search":					//搜尋表單
		include("Search.php");
		break;

	case "LogList":					//走馬燈變更記錄清單
		include("LogList.php");
		break;

	case "Lists":
		$_SESSION[$SessionSQL] = "";
	default:									//清單
		include("List.php");
		break;
}
@mysql_close($$_Conn);
?>